package io.github.wanggit.antcms.server.web.utils;

import org.springframework.util.StringUtils;

import java.util.Objects;

public abstract class Util {

    public static boolean valid(String args) {
        return StringUtils.hasText(args)
                && !Objects.equals("null", args.trim().toLowerCase())
                && !Objects.equals("undefined", args.trim().toLowerCase());
    }
}
